//
//  PPCustomBGTableView.m
//  PetParadise
//
//  Created by 陈无忌 on 8/7/14.
//  Copyright (c) 2014 whalefin. All rights reserved.
//

#import "PPCustomBGTableView.h"
#import "supportingHeadFiles.h"
@interface PPCustomBGTableView ()

- (void)_initializeCustomBGTableView;


@end

@implementation PPCustomBGTableView

//- (id)initWithFrame:(CGRect)frame
//{
//    self = [super initWithFrame:frame];
//    if (self) {
//        // Initialization code
//    }
//    return self;
//}

- (id)initWithFrame: (CGRect)frame
{
	// Abort if base initializer fails.
	if ((self = [super initWithFrame: frame]) == nil)
	{
		return nil;
	}
	
	// Initialize view.
	[self _initializeCustomBGTableView];
	
	// Return initialized instance.
	return self;
}

- (id)initWithCoder: (NSCoder *)coder
{
	// Abort if base initializer fails.
	if ((self = [super initWithCoder: coder]) == nil)
	{
		return nil;
	}
	
	// Initialize view.
    
	[self _initializeCustomBGTableView];
	
	// Return initialized instance.
	return self;
}

- (void)awakeFromNib
{
    //去掉空Cell的Separator
    if (!self.tableFooterView) {
        self.tableFooterView = [[UIView alloc] init];
    }
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/
- (void)_initializeCustomBGTableView
{
    self.backgroundColor = UIColorFromRGB(0xffffff);
}

@end
